<?php 

class Login extends CI_Model {

	function login()
	{
		$query = $this->db->get('employee');
		foreach($query->result() as $row)
		{
			//print_r($query->result());
			if($row->name == $this->input->post('username'))
				return true;
		}
		return false;
	}


}

?>